]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Avoid a little bit of RedBorderEffect overdraw
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Wed, 9 Jun 2021 06:21:21 +0000 (14:21 +0800)
committerMarge Bot <marge-bot@gnome.org>
Wed, 9 Jun 2021 16:31:19 +0000 (16:31 +0000)
The left edge of the box was redrawing the bottom left corner when
the bottom edge had already done so.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1876>

js/ui/lookingGlass.js

index 7604ae4a61fe588547aa228892146b19c1f96c04..a9f0512dbaa011298d92011bf0dcc4d5ff82ee58 100644 (file)
@@ -521,7 +521,7 @@ class RedBorderEffect extends Clutter.Effect {
         pipelineNode.add_rectangle(box);
 
         box.set_origin(0, width);
-        box.set_size(width, alloc.get_height() - width);
+        box.set_size(width, alloc.get_height() - width * 2);
         pipelineNode.add_rectangle(box);
     }
 });